package com.sanpu.kxe.business.main.contract;

import com.sanpu.kxe.base.IBaseExtraView;
import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.business.main.bean.ActHomePopOutput;
import com.sanpu.kxe.business.main.bean.CheckVersionOutput;
import com.sanpu.kxe.business.main.bean.UserCenterOutput;

import java.util.List;

/**
 * Description：主界面Contract
 * Created by 薛勇军 on 2018/7/9.
 */

public interface MainContract {

    interface View extends IBaseExtraView<Presenter> {

        /**
         * 获取个人信息回显
         * @param output 个人信息
         */
        void refreshUserData(UserCenterOutput output);

        /**
         * 弹出红包框
         */
        void showPackageDialog(UserCenterOutput.ActReb actReb);

        /**
         * 首页广告弹框
         */
        void showActHomePopup(List<ActHomePopOutput> outputs);

        /**
         * 没有进行过认证首次弹框
         */
        void showAuthDialog();

        /**
         * 显示版本更新弹框
         */
        void showCheckVersionDialog(CheckVersionOutput checkVersionOutput);
    }

    interface Presenter extends IBasePresenter {

        /**
         * 消息推送初始化
         */
        void initPush();

        /**
         * 获取用户个人信息
         */
        void onRequestUserCenter();

        /**
         * 广告弹框
         */
        void getActHomePopup();
    }
}
